package org.weasel.business;

public class IDFactory {

	/**
	 * Creates a unique id. It cannot just be returned the System.currentTimeMillis()
	 * since the granularity goes down to about 10ms, so there is the risk of getting
	 * duplicate id's
	 * @return
	 */
	public synchronized String getUniqueId(){
		long id = System.nanoTime();
		return String.valueOf(id);
	}
}
